#include <climits>
#include <cmath>
#include <iostream>
#include <vector>
using namespace std;
 
bool isPrime(int x) // Day25_1
{
    if(x < 2)
        return false;
    for(int i = 2; i <= sqrt(x); ++i)
    {
        if(x % i == 0)
            return false;
    }
    return true;
}
 
int main()
{
    vector<int> hash(150, 0);
    string str;
    cin >> str;
    for(auto& e : str)
    {
        hash[e]++;
    }
    int minn = INT_MAX, maxn = INT_MIN;
    for(auto& e : hash)
    {
        if(e != 0)
            minn = min(minn, e);
        maxn = max(maxn, e);
    }
    // cout << maxn << " " << minn << endl;
    // if(minn == 0 && maxn != minn)
    //     minn = 1;
    if(isPrime(maxn - minn))
        cout << "Lucky Word" << endl << maxn - minn << endl;
    else
        cout << "No Answer" << endl << 0 << endl;
    return 0;
}